package ex
{
	import mx.controls.Label;

	public class LabelEx extends Label
	{
		public var backgroundColor:uint = 0xFFFFFF;

		public function LabelEx()
		{
			super();
		}

		override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
		{
			super.updateDisplayList(unscaledWidth,unscaledHeight);

			graphics.clear();
			if( backgroundColor != 0x000000 && backgroundColor != 0xFFFFFF )
			{
				graphics.beginFill(backgroundColor);
				graphics.drawRect(0, -2, unscaledWidth, unscaledHeight+4 );
				graphics.endFill();
			}
		} 
	}
}